import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'

// 样本数据管理系统
const route: Route[] = [
  {
    path: '/testSampleDataManageSystem',
    component: Layout,
    redirect: '/testSampleDataManageSystem/historySampleData',
    meta: { title: '样本数据管理', icon: 'sfont system-component' },
    alwayShow: true,
    children: [
      {
        path: 'historySampleData',
        component: createNameComponent(() => import('@/views/TestSampleDataManageSystem/HistorySampleData/index.vue')),
        meta: { title: '历史样本数据管理' }
      },
      {
        path: 'historySampleData/checkinfo',
        component: createNameComponent(() => import('@/views/TestSampleDataManageSystem/HistorySampleData/Checkinfo/index.vue')),
        meta: { title: '历史样本数据查看' },
        hideMenu: true
      },
      {
        path: 'testSampleData',
        component: createNameComponent(() => import('@/views/TestSampleDataManageSystem/TestSampleData/index.vue')),
        meta: { title: '试验样本数据管理' },
      },
      {
        path: 'testSampleData/layer',
        component: createNameComponent(() => import('@/views/TestSampleDataManageSystem/TestSampleData/components/Layer.vue')),
        meta: { title: '试验样本数据管理-弹窗', hideTabs: true },
        hideMenu: true
      },
      {
        path: 'testSampleData/comparison',
        component: createNameComponent(() => import('@/views/TestSampleDataManageSystem/TestSampleData/DataComparisonBeforeAfter/index.vue')),
        meta: { title: '试验样本数据管理-数据对比', hideTabs: true  },
        hideMenu: true
      }
    ]
  }
]

export default route
